<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<div>
			The values stored were
			<span></span> and
			<span></span>
		</div>
		<script type="text/javascript" src="js/jquery-2.1.0.js" ></script>
		<script>
			$("div").data("test", {
				first: 16,
				last: "pizza!"
			});
			$("span:first").text($("div").data("test").first);
			$("span:last").text($("div").data("test").last);
		</script>

	</body>

</html>